# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/j/Documents/projects/navala/trunk/vera/w_stockexplorer.ui'
#
# Created: Wed Feb 20 13:25:43 2013
#      by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_StockExplorer(object):
    def setupUi(self, StockExplorer):
        StockExplorer.setObjectName(_fromUtf8("StockExplorer"))
        StockExplorer.resize(770, 435)
        StockExplorer.setWindowTitle(QtGui.QApplication.translate("StockExplorer", "Stock Explorer", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(StockExplorer)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.centralwidget)
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.splitter = QtGui.QSplitter(self.centralwidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName(_fromUtf8("splitter"))
        self.layoutWidget = QtGui.QWidget(self.splitter)
        self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget)
        self.horizontalLayout_2.setSizeConstraint(QtGui.QLayout.SetNoConstraint)
        self.horizontalLayout_2.setMargin(0)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidgetStock = QtGui.QTabWidget(self.layoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidgetStock.sizePolicy().hasHeightForWidth())
        self.tabWidgetStock.setSizePolicy(sizePolicy)
        self.tabWidgetStock.setMinimumSize(QtCore.QSize(0, 70))
        self.tabWidgetStock.setObjectName(_fromUtf8("tabWidgetStock"))
        self.tabStockset = QtGui.QWidget()
        self.tabStockset.setToolTip(QtGui.QApplication.translate("StockExplorer", "List stocks belonging to one Stock Set only; allows to remove items.", None, QtGui.QApplication.UnicodeUTF8))
        self.tabStockset.setObjectName(_fromUtf8("tabStockset"))
        self.horizontalLayout_6 = QtGui.QHBoxLayout(self.tabStockset)
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.comboBoxStockset = QtGui.QComboBox(self.tabStockset)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(4)
        sizePolicy.setHeightForWidth(self.comboBoxStockset.sizePolicy().hasHeightForWidth())
        self.comboBoxStockset.setSizePolicy(sizePolicy)
        self.comboBoxStockset.setObjectName(_fromUtf8("comboBoxStockset"))
        self.horizontalLayout.addWidget(self.comboBoxStockset)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.pushButtonStocksetNew = QtGui.QPushButton(self.tabStockset)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButtonStocksetNew.sizePolicy().hasHeightForWidth())
        self.pushButtonStocksetNew.setSizePolicy(sizePolicy)
        self.pushButtonStocksetNew.setText(QtGui.QApplication.translate("StockExplorer", "Create new...", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonStocksetNew.setObjectName(_fromUtf8("pushButtonStocksetNew"))
        self.horizontalLayout.addWidget(self.pushButtonStocksetNew)
        self.horizontalLayout_6.addLayout(self.horizontalLayout)
        self.tabWidgetStock.addTab(self.tabStockset, _fromUtf8(""))
        self.tabFilter = QtGui.QWidget()
        self.tabFilter.setObjectName(_fromUtf8("tabFilter"))
        self.horizontalLayout_5 = QtGui.QHBoxLayout(self.tabFilter)
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.lineEditFilter1 = QtGui.QLineEdit(self.tabFilter)
        self.lineEditFilter1.setObjectName(_fromUtf8("lineEditFilter1"))
        self.horizontalLayout_3.addWidget(self.lineEditFilter1)
        self.pushButtonFilter = QtGui.QPushButton(self.tabFilter)
        self.pushButtonFilter.setText(QtGui.QApplication.translate("StockExplorer", "Filter", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButtonFilter.setObjectName(_fromUtf8("pushButtonFilter"))
        self.horizontalLayout_3.addWidget(self.pushButtonFilter)
        self.horizontalLayout_5.addLayout(self.horizontalLayout_3)
        self.tabWidgetStock.addTab(self.tabFilter, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidgetStock)
        self.tableWidget = QtGui.QTableWidget(self.layoutWidget)
        self.tableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.verticalLayout.addWidget(self.tableWidget)
        self.verticalLayout.setStretch(0, 8)
        self.horizontalLayout_2.addLayout(self.verticalLayout)
        self.frame = QtGui.QFrame(self.splitter)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(13)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.horizontalLayout_7 = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.qwtPlot = QwtPlot(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.qwtPlot.sizePolicy().hasHeightForWidth())
        self.qwtPlot.setSizePolicy(sizePolicy)
        self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
        self.horizontalLayout_7.addWidget(self.qwtPlot)
        self.horizontalLayout_4.addWidget(self.splitter)
        StockExplorer.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(StockExplorer)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 770, 20))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        StockExplorer.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(StockExplorer)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        StockExplorer.setStatusBar(self.statusbar)

        self.retranslateUi(StockExplorer)
        self.tabWidgetStock.setCurrentIndex(0)
        QtCore.QObject.connect(self.lineEditFilter1, QtCore.SIGNAL(_fromUtf8("returnPressed()")), self.pushButtonFilter.click)
        QtCore.QMetaObject.connectSlotsByName(StockExplorer)

    def retranslateUi(self, StockExplorer):
        self.tabWidgetStock.setTabText(self.tabWidgetStock.indexOf(self.tabStockset), QtGui.QApplication.translate("StockExplorer", "Stock Sets", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidgetStock.setTabText(self.tabWidgetStock.indexOf(self.tabFilter), QtGui.QApplication.translate("StockExplorer", "Filter", None, QtGui.QApplication.UnicodeUTF8))
        self.tableWidget.setSortingEnabled(True)

from qwt_plot import QwtPlot

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    StockExplorer = QtGui.QMainWindow()
    ui = Ui_StockExplorer()
    ui.setupUi(StockExplorer)
    StockExplorer.show()
    sys.exit(app.exec_())

